﻿namespace OmniKits.Windows.Interop
{
    partial class User32
    {
        public const int HTERROR = (-2);
        public const int HTTRANSPARENT = (-1);
        public const int HTNOWHERE = 0;
        public const int HTCLIENT = 1;
        public const int HTCAPTION = 2;
        public const int HTSYSMENU = 3;
        public const int HTGROWBOX = 4;
        public const int HTSIZE = HTGROWBOX;
        public const int HTMENU = 5;
        public const int HTHSCROLL = 6;
        public const int HTVSCROLL = 7;
        public const int HTMINBUTTON = 8;
        public const int HTMAXBUTTON = 9;
        public const int HTLEFT = 10;
        public const int HTRIGHT = 11;
        public const int HTTOP = 12;
        public const int HTTOPLEFT = 13;
        public const int HTTOPRIGHT = 14;
        public const int HTBOTTOM = 15;
        public const int HTBOTTOMLEFT = 16;
        public const int HTBOTTOMRIGHT = 17;
        public const int HTBORDER = 18;
        public const int HTREDUCE = HTMINBUTTON;
        public const int HTZOOM = HTMAXBUTTON;
        public const int HTSIZEFIRST = HTLEFT;
        public const int HTSIZELAST = HTBOTTOMRIGHT;
        public const int HTOBJECT = 19;
        public const int HTCLOSE = 20;
        public const int HTHELP = 21;
    }
}

namespace OmniKits.Windows.Interop
{
    using static User32;

    public enum HitTest : int
    {
        Error = HTERROR,
        Transparent = HTTRANSPARENT,
        Nowhere = HTNOWHERE,
        Client = HTCLIENT,
        Caption = HTCAPTION,
        SysMenu = HTSYSMENU,
        Size = HTSIZE,
        SizeFirst = HTSIZEFIRST,
        SizeLast = HTSIZELAST,
        GrowBox = HTGROWBOX,
        Menu = HTMENU,
        HorizontalScroll = HTHSCROLL,
        VerticalScroll = HTVSCROLL,
        MinButton = HTMINBUTTON,
        Reduce = HTREDUCE,
        MaxButton = HTMAXBUTTON,
        Zoom = HTZOOM,
        Left = HTLEFT,
        Right = HTRIGHT,
        Top = HTTOP,
        TopLeft = HTTOPLEFT,
        TopRight = HTTOPRIGHT,
        Bottom = HTBOTTOM,
        BottomLeft = HTBOTTOMLEFT,
        BottomRight = HTBOTTOMRIGHT,
        Border = HTBORDER,
        Close = HTCLOSE,
        Help = HTHELP,
    };
}
